package com.easybacklog.client.cucumberfeatures.edit;

import com.easybacklog.client.model.ProjectFeature;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;

/**
 * 
 * @Feature
 */
public class BacklogFeatureFileView extends VerticalPanel {

	public static VerticalPanel vpSourceCode = new VerticalPanel();

	public BacklogFeatureFileView(ProjectFeature feature) {

		this.add(getHpTitle());

		this.add(vpSourceCode);

	}

	private static HorizontalPanel getHpTitle() {

		HorizontalPanel hpTitle = new HorizontalPanel();
		hpTitle.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);

		hpTitle.setSpacing(20);

		HTML htmlTitle = new HTML(
				"<b><font color='blue' size='3'>Backlog Feature</font></b>");
		hpTitle.add(htmlTitle);

		Label space = new Label(" ");
		space.setWidth("400px");
		hpTitle.add(space);

		hpTitle.add(new ButtonCloseBacklogForm());

		return hpTitle;
	}

}
